<div class="sinhviens index">
<h2><?php __('Thông Tin Sinh Viên');?></h2>
<p>
<?php
echo $paginator->counter(array(
/*'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)*/
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('STT');?></th>
	<th><?php echo $paginator->sort('Phường/Xã', 'sinhvien.phuong_id');?></th>
	<th><?php echo $paginator->sort('Dân Tộc', 'sinhvien.dantoc_id');?></th>
	<th><?php echo $paginator->sort('Đối Tượng', 'sinhvien.doituong_id');?></th>
	<th><?php echo $paginator->sort('Lớp', 'sinhvien.lop_id');?></th>
	<th><?php echo $paginator->sort('MSSV', 'sinhvien.mssv');?></th>
	<th><?php echo $paginator->sort('Họ Lót', 'sinhvien.holot');?></th>
	<th><?php echo $paginator->sort('Tên', 'sinhvien.ten');?></th>
	<th><?php echo $paginator->sort('Ngày Sinh', 'sinhvien.ngaysinh');?></th>
	<th><?php echo $paginator->sort('Giới Tính', 'sinhvien.gioitinh');?></th>
	<th><?php echo $paginator->sort('Pass', 'sinhvien.pass');?></th>
	<th><?php echo $paginator->sort('Email', 'sinhvien.email');?></th>
	<th><?php echo $paginator->sort('Địa Chỉ', 'sinhvien.diachi');?></th>
	<th><?php echo $paginator->sort('Số Điện Thoại', 'sinhvien.dtdd');?></th>
	<th class="actions"><?php __('Thao tác');?></th>
</tr>
<?php
$i = 0;
foreach ($sinhviens as $sinhvien):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $sinhvien['Sinhvien']['id']; ?>
		</td>
		<td>
			<?php echo $html->link($sinhvien['Phuong']['id'], array('controller' => 'phuongs', 'action' => 'view', $sinhvien['Phuong']['id'])); ?>
		</td>
		<td>
			<?php echo $html->link($sinhvien['Dantoc']['id'], array('controller' => 'dantocs', 'action' => 'view', $sinhvien['Dantoc']['id'])); ?>
		</td>
		<td>
			<?php echo $html->link($sinhvien['Doituong']['id'], array('controller' => 'doituongs', 'action' => 'view', $sinhvien['Doituong']['id'])); ?>
		</td>
		<td>
			<?php echo $html->link($sinhvien['Lop']['id'], array('controller' => 'lops', 'action' => 'view', $sinhvien['Lop']['id'])); ?>
		</td>
		<td>
			<?php echo $sinhvien['Sinhvien']['mssv']; ?>
		</td>
		<td>
			<?php echo $sinhvien['Sinhvien']['holot']; ?>
		</td>
		<td>
			<?php echo $sinhvien['Sinhvien']['ten']; ?>
		</td>
		<td>
			<?php echo $sinhvien['Sinhvien']['ngaysinh']; ?>
		</td>
		<td>
			<?php echo $sinhvien['Sinhvien']['gioitinh']; ?>
		</td>
		<td>
			<?php echo $sinhvien['Sinhvien']['pass']; ?>
		</td>
		<td>
			<?php echo $sinhvien['Sinhvien']['email']; ?>
		</td>
		<td>
			<?php echo $sinhvien['Sinhvien']['diachi']; ?>
		</td>
		<td>
			<?php echo $sinhvien['Sinhvien']['dtdd']; ?>
		</td>
		<td class="actions">
			<?php echo $html->link(__('Hiển thị', true), array('action' => 'view', $sinhvien['Sinhvien']['id'])); ?>
			<?php echo $html->link(__('Sửa', true), array('action' => 'edit', $sinhvien['Sinhvien']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action' => 'delete', $sinhvien['Sinhvien']['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $sinhvien['Sinhvien']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm sinh viên', true), array('action' => 'add')); ?></li>
		<li><?php echo $html->link(__('Danh sách phường/xã', true), array('controller' => 'phuongs', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm phường/xã', true), array('controller' => 'phuongs', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh mục dân tộc', true), array('controller' => 'dantocs', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm dân tộc', true), array('controller' => 'dantocs', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách đối tượng', true), array('controller' => 'doituongs', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm đối tượng', true), array('controller' => 'doituongs', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách lớp', true), array('controller' => 'lops', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm lớp', true), array('controller' => 'lops', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách bầu chọn', true), array('controller' => 'bauchons', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm bầu chọn', true), array('controller' => 'bauchons', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách đăng ký', true), array('controller' => 'dangkies', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm đăng ký', true), array('controller' => 'dangkies', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách điểm danh', true), array('controller' => 'diemdanhs', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm điểm danh', true), array('controller' => 'diemdanhs', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách đăng ký môn học', true), array('controller' => 'dkmhs', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm đăng ký môn học', true), array('controller' => 'dkmhs', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách sinh viên chức vụ', true), array('controller' => 'svcvs', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm sinh viên chức vụ', true), array('controller' => 'svcvs', 'action' => 'add')); ?> </li>
	</ul>
</div>
